#!/bin/bash

for dir in `ls /proc | grep "[0-9]\{1,\}"`
do
	P="/proc/""$dir""/maps"
	N="/proc/""$dir""/status"
	
	if [ `cat $P | awk '{print $6}'\; | sort | uniq | grep "$1" | wc -l` -eq '1' ]; then
		cat $N | grep "Name:" | awk '{print $2}'\;
	fi
done
